<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/common/jsp/page.jsp" %>

<h2 class="contentTitle">管理员添加</h2>
<div class="pageContent">
	
	<form method="post" action="${rootpath}/admin_adminSave.htm" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">

			<dl>
				<dt>邮箱：</dt>
				<dd>
					<input type="text" name="admin.email" value=""  />
				</dd>
			</dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input id="adminFormPassword" type="password" name="admin.password" value=""  />
				</dd>
			</dl>
			<dl>
				<dt>确认密码：</dt>
				<dd> 
					<input type="password" name="repassword" value="" equalto="#adminFormPassword" />
				</dd>
			</dl>
			<dl>
				<dt>姓名：</dt>
				<dd>
					<input type="text" name="admin.trueName" value=""  />
				</dd>
			</dl>
			<dl>
				<dt>手机：</dt>
				<dd>
					<input type="text" name="admin.phone"  value=""  />
				</dd>
			</dl>
			<dl>
				<dt>qq：</dt>
				<dd>
					<input type="qq" name="admin.qq" value="" />
				</dd>
			</dl>
			
			<dl>
				<dt>状态：</dt>
				<dd>
					<input id="adminFormStatus1" type="radio" name="admin.status" value="0" />禁用
					<input id="adminFormStatus2" type="radio" name="admin.status" value="1" checked="checked"/>启用
				</dd>
			</dl>
			<dl>
				<dt>角色：</dt>
				<dd>
					<select name="admin.role.id">
						<c:forEach items="${requestScope.roleList }" var="list" >
							<option value="${list.id }">${list.name}</option>
						</c:forEach>
					</select>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
